﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.vs.General.RF
{
    public abstract class RFHandlingPage:RFPage
    {
        protected abstract void procData();

        protected void go()
        {
            this.initData();
            this.parseRequest();
            if (!StringManager.IsEmpty(stError))
            {
                Server.Transfer("~/" + stSourcePage + "?ERROR_MESSAGE=" + stError);
            }

            this.procData();
            if (!StringManager.IsEmpty(stError))
            {
                Server.Transfer("~/" + stSourcePage + "?ERROR_MESSAGE=" + stError);
            }
            else
            {
                Response.Redirect("~/" + stTargetPage);
            }
        }

        protected override void initData(){}
    }
}
